<!DOCTYPE html>
<!--
  ~ Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
  ~
  ~ WSO2 Inc. licenses this file to you under the Apache License,
  ~ Version 2.0 (the "License"); you may not use this file except
  ~ in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied.  See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->

<html lang="en">
<%
    var app = require("/site/public/conf/settings.js").AppConfig.app;
    var appUtils = require("/services/utils.js");
    app.context = appUtils.getTenantBasePublisherContext();
%>

<head>
    <base href="<%= app.context %>/" />
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=1024, initial-scale=1" />
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>[Publisher Portal]WSO2 APIM</title>

    <link href="<%= app.context %>/site/public/css/main.css" type="text/css" rel="stylesheet" />
    <link href="<%= app.context %>/site/public/css/draftjs.css" type="text/css" rel="stylesheet" />
    <link rel="shortcut icon" href="<%= app.context %>/site/public/images/favicon.ico">
</head>

<body>

    <div id="react-root">
        <div class="apim-dual-ring"></div>
    </div>

    <script src="<%= app.context %>/site/public/fonts/iconfont/MaterialIcons.js"></script>
    <script src="<%= app.context %>/site/public/conf/userThemes.js"></script>
    <script src="<%= app.context %>/site/public/conf/portalSettings.js"></script>
    <script src="<%= app.context %>/services/settings/settings.js"></script>
    <script src="<%= app.context %>/{{ htmlWebpackPlugin.files.js[0] }}"></script>
    <!-- Swagger worker has being removed until we resolve
     *              https://github.com/wso2/product-apim/issues/10694 issue, need to change webpack config too -->
    <!--script src="<%= app.context %>/{{ htmlWebpackPlugin.files.js[1] }}"></script-->
    <link rel="stylesheet" href="<%= app.context %>/site/public/fonts/iconfont/material-icons.css">
</body>

</html>
